home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / CIncludes / MacRuntime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-18  |  1.4 KB  |  57 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    MacRuntime.h
  3.  *    C Interface to the Macintosh Programmer's Workshop Libraries
  4.  *
  5.  * © Copyright Apple Computer Inc. 1993-1995
  6.  * All rights reserved.
  7.  *
  8.  * Warning:  This interface is NOT a part of the ANSI C standard.
  9.  *             We do NOT claim to be POSIX compliant.  If you want
  10.  *             your code to be portable, don't use this interface.
  11.  */
  12.  
  13. /* Conditional Macros:
  14.  *    UsingStaticLibs    - for CFM-68K:  Insures that #pragma import is never used.
  15.  *    <none>            - for CFM-68K:    Insures that all functions and data items are
  16.  *                                    marked as library imports
  17.  */
  18.  
  19. #ifndef __MACRUNTIME__
  20. #define __MACRUNTIME__    1
  21.  
  22.  
  23. #include <types.h>
  24.  
  25. #if defined(__CFM68K__) || defined(__powerc)
  26. #include <CodeFragments.h>        /* For "InitBlockPtr". */
  27. #endif /* __CFM68K__ || __powerc */
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. /* Program Initialization and Termination */
  34.  
  35. int _RTInit(ProcPtr retPC, int *pArgC, char ***pArgV, char ***pEnvP, int forPascal);
  36. void _RTExit(int status);
  37.  
  38. /* Utility Routine */
  39.  
  40. pascal Boolean TrapAvailable (short TrapNumber);
  41.  
  42. #if defined(__CFM68K__) || defined(__powerc)
  43.  
  44. /* Default code fragment initialization and termination entry points.        */
  45. /* Needed for CFM applications or shared libraries containing C++ code.        */
  46.  
  47. extern OSErr    __init_app(CFragInitBlockPtr initBlockPtr);
  48. extern void        __term_app(void);
  49. extern OSErr    __init_lib(CFragInitBlockPtr initBlockPtr);
  50. extern void        __term_lib(void);
  51.  
  52. #endif /* __CFM68K__ || __powerc */
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif